.formContainer {
    position: relative;
    margin-bottom: 40px;
    :global {
        .sectionHeader {
            font-size: 16px;
            line-height: 40px;
            font-weight: bold;
            margin-bottom: 1em;
        }
        .sectionControls {
            position: absolute;
            right: 0;
            top: 0;
            line-height: 40px;

            .ant-btn-link {
                color: #666;
            }
            .ant-btn-link.edit,
            .ant-btn-link:hover {
                color: #ffa22d;
            }
        }
        .multiLineText {
            line-height: 1.8em;
            margin-top: 8px;
            word-break: break-all;
        }
        .ant-form {
            display: flex;
            flex-wrap: wrap;
            .ant-form-item {
                display: flex;
                width: 50%;
                padding-right: 24px;
                .ant-form-item-label {
                    width: 160px;
                    flex-shrink: 0;
                }
                .ant-form-item-control-wrapper {
                    flex: 1;
                }
            }
        }

        .formView {
            .ant-form-item {
                margin-bottom: 0;
            }
        }

        .formEdit {
            .ant-form-item {
                margin-bottom: 16px;
            }

            .ant-form-item:last-child {
                margin-bottom: 0;
            }
        }

        .basicInfoEdit {
            .ant-form-item:last-child {
                margin-bottom: 16px;
            }
        }

        .dynamicList {
            width: 100%;

            .dynamicListBlank {
                margin-top: 1em;
                padding: 1em;
                text-align: center;
                background: #f7f7f7;
                border-radius: 4px;
            }
            .dynamicListItem {
                position: relative;
                border-radius: 4px;
                background: #f7f7f7;
                padding: 14px 0;
                margin-bottom: 20px;
                display: flex;
                flex-wrap: wrap;

                &:last-child {
                    margin-bottom: 0;
                }

                .dynamicListClose {
                    position: absolute;
                    top: -5px;
                    right: 0;
                }
            }
            .dynamicListAddButton {
                margin-top: 20px;
            }
        }
    }
}

.formLayoutEntryGuide {
    margin-bottom: 30px;
    :global {
        .sectionHeader {
            position: relative;
            padding-left: 14px;
            font-size: 16px;
            line-height: 32px;
            margin-bottom: 30px;
            &:after {
                content: '';
                position: absolute;
                left: 0;
                top: 6px;
                width: 4px;
                height: 20px;
                border-radius: 0 4px 4px 0;
                background-color: #ffa22d;
            }
        }
        .sectionControls {
            line-height: 34px;
            button {
                border-radius: 8px;
            }
        }
        .ant-form {
            display: flex;
            flex-wrap: wrap;
            padding-left: 20px;
            justify-content: space-between;
            .ant-form-item {
                display: block;
                width: 45%;
                padding-right: 0;
                margin-bottom: 16px;
                .ant-form-item-label {
                    width: 100%;
                    text-align: left;
                    display: block;
                    flex-shrink: 0;
                    line-height: 24px;
                    label {
                        color: #49536c;
                        font-size: 16px;
                    }
                }
                .ant-form-item-control-wrapper {
                    flex: 1;
                    font-size: 16px;
                    line-height: 26px;
                    color: #bbc1ce;
                }
                .ant-typography {
                    color: #bbc1ce;
                }
                &:nth-of-type(2n) {
                    margin-right: 0;
                }
            }
        }
        .dynamicListItem {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            background-color: transparent !important;
            border-bottom: solid 1px #ededed;
            &:last-child {
                border-bottom: none;
            }
            .dynamicListItemHeader {
                position: relative;
                z-index: 1;
                display: block;
                width: 100%;
                height: 48px;
                line-height: 48px;
                padding: 0 1em;
                margin-bottom: 24px;
                background: #f6f7f8;
                border-radius: 4px;
                border: 1px solid #e8eaef;
                color: #bbc1ce;
                font-size: 16px;
            }
            .dynamicListClose {
                z-index: 2;
                top: 30px !important;
                right: 20px !important;
                font-size: 16px;
            }
        }
        .formEdit {
            .dynamicListItem {
                border-bottom: none;
            }
        }
        .dynamicListAddButton {
            font-size: 16px;
            line-height: 48px;
            height: 48px;
            margin-top: 0;
            color: #49536c;
            background-color: #f6f7f8 !important;
            &:focus,
            &:hover,
            &:active {
                background-color: #f7f7f7 !important;
                color: #49536c !important;
                border: 1px solid #d9d9d9 !important;
            }
        }
    }
}

.entryGuideStyle {
    :global {
        .archivesContainer {
            max-width: 1040px;
            margin: 0 auto !important;
        }
        .ant-anchor-link {
            padding: 8px 0 8px 16px;
        }
        .ant-anchor-link-title {
            font-size: 16px;
        }
    }
}

.materialTableWrap {
    :global {
        .ant-table-tbody {
            > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
                background-color: transparent;
            }
            > tr > td.fileColumn .file:hover {
                background-color: rgba(255, 158, 0, 0.1) !important;
                color: #ffa22d;
                .deleteFile {
                    visibility: visible;
                }
            }
            > tr > td {
                padding: 0;
                .padding-16 {
                    padding: 16px;
                }
            }
        }
    }
}
.recordItem {
    margin: 0 16px 16px;
    :global {
        .ant-card-head {
            background-color: #fafafa;
        }
    }
    &:hover {
        transition: all 0.2s;
        box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
    }
    .recordItemRow {
        line-height: 40px;
    }
    .recordItemLabel {
        color: #aaa;
    }
    .recordItemValue {
        color: #000;
    }
    .recordItemStatus {
        margin-top: 10px;
        background-color: #ecfff7;
        color: #44c69d;
        border-radius: 4px;
        line-height: 46px;
        font-size: 14px;
        padding: 0 16px;
    }
}

.filesWrapper {
    :global {
        .file {
            display: block;
            padding: 16px;
            line-height: 14px;
            border-bottom: 1px solid #e8e8e8;
            &:last-child {
                border-bottom-color: transparent;
            }
            .fileName {
                display: inline-block;
                max-width: 300px;
                text-overflow: ellipsis;
                white-space: nowrap;
                overflow: hidden;
            }
            .preview {
                line-height: 18px;
                vertical-align: 1px;
                cursor: pointer;
                font-size: 16px;
                margin-left: 10px;
            }
            &:hover {
                background-color: rgba(255, 158, 0, 0.1) !important;
                color: #ffa22d;
            }
        }
    }
}

.paperMaterialsTable {
    :global {
        .ant-table-tbody {
            > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
                background-color: transparent;
            }
            .fileColumn {
                padding: 0;
                .noFile {
                    color: #a8a8a8;
                    padding: 0 16px;
                }
                .materialList {
                    padding: 10px 16px;
                    line-height: 1.5em;
                }
            }
        }
    }
}
